package com.gengral.bussiness.sys.user.service;

import com.gengral.bussiness.sys.user.entity.User;
import com.github.pagehelper.Page;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sht
 * @since 2020-04-14
 */

public interface UserService extends IService<User>{

    /**
	* 根据id查询User
	*/
    User getUserById(Long id) throws Exception;

    /**
	* 查询User列表
	*/
    List<User> listUser(User user) throws Exception;

	/**
	* 分页查询User列表
	*/
	Page<User> pageUser(User user, Integer pageNo, Integer pageSize) throws Exception;

    /**
	* 新增User
	*/
	Integer addUser(User user) throws Exception;

	/**
	* 更新User
	*/
	Integer updateUser(User user) throws Exception;

	/**
	* 根据id物理删除User
	*/
	Integer deleteUserById(Long id)	throws Exception;

	/**
	* 根据id逻辑删除User
	*/
	Integer removeUserById(Long id)	throws Exception;
}
